package com.deep.seckill.feign;

import com.deep.common.utils.R;
import com.deep.seckill.fallback.ProductFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 商品系统远程调用
 *
 * @author Deep
 * @date 2022/2/21
 */
@FeignClient(value = "mall-product", fallback = ProductFeignServiceFallback.class)
public interface ProductFeignService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);
}
